import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SDominionDateStage
    
    export  class SDominionDateStage extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDominionDateStage();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeDate(this.startDate);
            arg1.writeDate(this.endDate);
            arg1.writeInt(this.continueTime);
            arg1.writeInt(this.stage);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.startDate = arg1.readDate();
            this.endDate = arg1.readDate();
            this.continueTime = arg1.readInt();
            this.stage = arg1.readInt();
            return;
        }

        public /* const */_type: int=2058;

        public /* var */startDate: Date;

        public /* var */endDate: Date;

        public /* var */continueTime: int;

        public /* var */stage: int;

        public static /* var */_regist: SDominionDateStage;
    }

            SDominionDateStage._regist = new SDominionDateStage(true);
        